package com.study.goal.service;


import com.study.common.core.domain.PageQuery;
import com.study.common.core.page.TableDataInfo;
import com.study.goal.domain.bo.MemberLevelRuleBo;
import com.study.goal.domain.vo.MemberLevelRuleVo;

import java.util.Collection;
import java.util.List;

/**
 * 会员等级规则Service接口
 *
 * @author MT
 * @date 2025-09-03
 */
public interface IMemberLevelRuleService {

    /**
     * 查询会员等级规则
     */
    MemberLevelRuleVo queryById(Long id);

    /**
     * 查询会员等级规则列表
     */
    TableDataInfo<MemberLevelRuleVo> queryPageList(MemberLevelRuleBo bo, PageQuery pageQuery);

    /**
     * 查询会员等级规则列表
     */
    List<MemberLevelRuleVo> queryList(MemberLevelRuleBo bo);

    /**
     * 新增会员等级规则
     */
    Boolean insertByBo(MemberLevelRuleBo bo);

    /**
     * 修改会员等级规则
     */
    Boolean updateByBo(MemberLevelRuleBo bo);

    /**
     * 校验并批量删除会员等级规则信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
